package com.xp.code.view;

import org.apache.log4j.Logger;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.xp.code.util.XPCodeSession;

/**
 * 
 * @author HAHA
 *
 */
@Controller("loginInfoAction")
@Scope("prototype")
public class LoginInfoAction extends XPInfoAction{

	private static Logger loger=Logger.getLogger(LoginInfoAction.class);
	
	public LoginInfoAction(){
		super();
	}
	


	public String loginInfo(){
		XPCodeSession xpsession=new XPCodeSession();
		loger.warn("debug   "+xpsession.getAttribute("userID").toString());
		this.setUserID(xpsession.getAttribute("userID").toString());
		this.setUserName(xpsession.getAttribute("userName").toString());
		this.setDeptID(xpsession.getAttribute("deptID").toString());
		this.setDeptName(xpsession.getAttribute("deptName").toString());
		this.setUnitID(xpsession.getAttribute("unitID").toString());
		this.setUnitName(xpsession.getAttribute("unitName").toString());
		return SUCCESS;
	}
}
